<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="../lib/jquery/jquery-1.11.1.js" ></script>
		<script type="text/javascript">
			function f1(){
//				console.log($('option:selected').val());
				console.log($('select').val());
			}
			function f2(){
				$('select').val([2,3]);
			}
		</script>
		<style type="text/css">
        div{color:red; border:4px solid blue;}
        </style>
	</head>
	<body>
		<h1>下拉列表操作</h1>

        学历：
        <select multiple="multiple">
            <option value="0">请选择</option>
            <option value="1">小学</option>
            <option value="2">中学</option>
            <option value="3">大学</option>
        </select>

        <br /><br />
        <input type="button" value="获取" onclick="f1()" />
        <input type="button" value="设置" onclick="f2()" />
	</body>
</html>
